<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class ActiveApi
 * 
 * @property int $id
 * @property string $title
 * @property int $type
 * @property int $partner_id
 * @property string $partner_name
 * @property \Carbon\Carbon $begin_time
 * @property \Carbon\Carbon $end_time
 * @property string $link_pc
 * @property string $link_h5
 * @property string $img_pc
 * @property string $img_h5
 * @property string $location
 * @property int $status
 * @property int $creator_id
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class ActiveApi extends Eloquent
{
	protected $table = 'active_api';

	protected $casts = [
		'type' => 'int',
		'partner_id' => 'int',
		'status' => 'int',
		'creator_id' => 'int'
	];

	protected $dates = [
		'begin_time',
		'end_time'
	];

	protected $fillable = [
		'title',
		'type',
		'partner_id',
		'partner_name',
		'begin_time',
		'end_time',
		'link_pc',
		'link_h5',
		'img_pc',
		'img_h5',
		'location',
		'status',
		'creator_id'
	];
}
